<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Model</title>
	<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
</head>
<body>
	<article id="app">
		<button v-on:click="get">click me</button>
		<p>这个按钮被点击了{{ counter }}次</p>
		<input type="text" v-model="counter">
	</article>
	<script> 
		var text=new Vue({
			el:'#app',
			data:{
				counter:0
			},
			methods:{
				get: function  () {
					// body...
					this.counter+=1;
				}
			}

		})
	</script>
</body>
</html>